<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
 
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Vendas Web</title>
        <link type="text/css" rel="stylesheet" 	href="/WebVendas/css/estilo.css" />
    </h:head>
    <h:body>
        <div align="center">
            <p:layout style="min-width:1020px;max-width:1020px;min-height:600px"> 
                <p:layoutUnit position="north" size="100"> 
                    <h:outputText value="WEB VENDAS - VERSÃO BETA" style="font-size: 15px;" />
                </p:layoutUnit> 
 
                <p:layoutUnit position="west" size="220"> 
                    <ui:insert name="menu">
                        <h:form>
                            <p:menu style="width: 200px">
                            	<p:submenu label="Usuário">
                                    <p:menuitem value="Página Inicial" action="#{usuarioMB.irIndex}"/>
                                    <p:menuitem value="Encerrar Sessão" action="#{usuarioMB.encerrar}"/>
                                </p:submenu>
                                <br />
                                <p:submenu label="Serviços">
                                    <p:menuitem value="Listar Compras" action="#{comprasMB.listarCompras}"/>
                                    <p:menuitem value="Listar Produtos" action="#{produtoMB.listarProdutos}"/>
                                    <p:menuitem value="Listar Clientes" action="#{clienteMB.listarClientes}"/>
                                    <p:menuitem value="Listar Pedidos" action="#{pedidoMB.listarPedidos}"/>        
                                </p:submenu>
                            </p:menu>
                        </h:form>
                    </ui:insert>
                </p:layoutUnit> 
                <p:layoutUnit position="center"> 
                    <ui:insert name="conteudo">
                       
                    </ui:insert>
                </p:layoutUnit> 
            </p:layout> 
        </div>
    </h:body>
</html>